package strategy.b;

/**
 * 机器鸭
 *
 * @author Mike
 *
 */
public class MechanicalDuck extends Duck {

	public MechanicalDuck() {
		this.flyBehavior = new FlyWithRocketPower();
		this.quackBehavior = new Quack();
		this.speakBehavior = new SpeakInChinese();
		this.display();
	}

	@Override
	void display() {
		System.out.println("I am a mechanicalDuck.");
	}

}
